<template>
    <LayBreadcrumb class="breadcrumb">
        <LayBreadcrumbItem v-for="item in items" :title="item" :key="item">
            <template v-if="$slots.default">
                <slot :title="item"></slot>
            </template>
        </LayBreadcrumbItem>
    </LayBreadcrumb>
</template>

<script setup lang="ts">
import { LayBreadcrumb, LayBreadcrumbItem } from '@layui/layui-vue';

defineProps<{
    items: string[];
}>();
</script>

<style scoped></style>
